import java.util.Scanner;

public class one {
    public static void main(String[] args) {
        System.out.println("请输入n");Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int num=0;
        int sum=0;
        for(int i=1;i<a;i++){
            if(i%7==0){
                num+=1;
                sum+=i;
            }
        }
        System.out.println("个数:"+num);
        System.out.println("总和:"+sum);
    }
}
